package cn.tedu.tmall.admin.mall.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.AccessLevel;
import lombok.Data;
import lombok.experimental.FieldDefaults;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
public class MallCategoryAddParam implements Serializable {

    @NotBlank(message = "类别名称不能为空")
    @ApiModelProperty(value = "类别名称",required = true,dataType = "string")
    String name;


    @NotNull(message = "父类别id不能为空")
    @ApiModelProperty(value = "父类别id",required = true,dataType = "long")
    Long parentId;

    @ApiModelProperty(value = "是否启用",required = true,dataType = "long",example = "1 表示启用,0表示禁用")
    Integer enable;

    /**
     * 是否在首页展示
     */
    @ApiModelProperty(value = "是否在首页展示",required = true,dataType = "long",example = "1 表示启用,0表示禁用")
    Integer isDisplay;
}
